package com.qiangesoft.cloud.sentinelfeign.controller;

import com.qiangesoft.cloud.sentinelfeign.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private PaymentService paymentService;

    @GetMapping("/add")
    public String testA(@RequestParam("name") String name) {
        return paymentService.add(name);
    }
}
